package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;

import static org.jsola.hr.example.AttendPunchCalibrationExample.*;

/**
 * 考勤打卡校准记录表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【考勤打卡校准记录表】的参数")
@Data
public class AttendPunchCalibrationAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_PUNCH_RECORD_ID, example = E_PUNCH_RECORD_ID)
    @Length(max = 32, message = M_PUNCH_RECORD_ID_MAX)
    private String punchRecordId;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 255, message = M_REMARK_MAX)
    private String remark;

    @ApiModelProperty(notes = N_HIS_PUNCH_STATUS, example = E_HIS_PUNCH_STATUS)
    private Integer hisPunchStatus;

    @ApiModelProperty(notes = N_HIS_PUNCH_TIME, example = E_HIS_PUNCH_TIME)
    private Date hisPunchTime;

    @ApiModelProperty(notes = N_CALIBRATION_METHOD, example = E_CALIBRATION_METHOD)
    @Length(max = 32, message = M_CALIBRATION_METHOD_MAX)
    private String calibrationMethod;

    @ApiModelProperty(notes = N_PUNCH_TIME, example = E_PUNCH_TIME)
    private Date punchTime;

    @ApiModelProperty(notes = "当前是第几次补卡(取当前顺序号)")
    private Integer number;

}

